package a02demo2;

import java.util.ArrayList;
import java.util.function.Consumer;
import java.util.stream.Stream;

public class Test1 {
    public static void main(String[] args) {
        ArrayList<String> list1 = new ArrayList<>();
        list1.add("ab");
        list1.add("a");
        list1.add("ac");
        list1.stream().forEach(s -> System.out.println(s));

    }
}
